<?php
if ($dirWritable):
?>
<p class="info">
    <?php
    echo __t('mandrill.setup.confDirWritable');
    ?>
</p>
<br />
<p>
    <?php
    echo __t('mandrill.setup.confDirWritableExplained');
    ?>
</p>
<br />
<p>
    <?php
    echo __t('mandrill.setup.testConnection');
    ?>
    <br />
    <?php
    echo __tag('a', array('class'=>'button','id'=>'butDbConnection', 'href'=>'?r=ml-setup/home/testConnection'), __t('mandrill.setup.testConnectionButton'));
    ?>
    <br />
    <span id="resultTestConnection"></span>
</p>
<br />
<p>
    <?php
    echo __t('mandrill.setup.launchDatabaseConfiguration');
    ?>
    <br />
    <?php
    echo __tag('a', array('class'=>'button','id'=>'butDbConfiguration', 'href'=>'?r=ml-setup/home/dbConfiguration'), __t('mandrill.setup.launchDatabaseConfigurationButton'));
    ?>
    <br />
    <span id="resultDbConfiguration"></span>
</p>
<?php
else:
?>
<p class="warning">
    <?php
    echo __t('mandrill.setup.confDirNotWritable');
    ?>
</p>
<br />
<p>
    <?php
    echo __t('mandrill.setup.confDirNotWritableExplained');
    ?>
</p>
<br />
<p>
    <textarea class="code" rows="10" cols="50">
    <?php
    echo $configContent;
    ?>
    </textarea>
</p>
<?php
endif;
?>
<br />
<p class="align-right">
    <?php
    echo __tag('a', array('href' => '?r=ml-setup'), __t('mandrill.setup.goback'));
    ?>
</p>